package cn.itsource.order.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;
import cn.itsource.basic.domain.BaseDomain;
import org.springframework.transaction.annotation.Transactional;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_product")
public class Product extends BaseDomain {
	
	
	
	/**
	 * 服务名称
	 */	
	private String name;
	
	
	/**
	 * 存放fastdfs地址，多个资源使用，分割
	 */	
	private String resources;

	/**
	 * 售价
	 */
	private BigDecimal saleprice;
	
		
	private Date offsaletime;

	/**
	 * 上架时间
	 */
	private Date onsaletime;
	
	
	/**
	 * 状态：0下架 1上架
	 */	
	private Long state;

	/**
	 * 成本
 	 */
	private String costprice;
	
		
	private Date createtime;
	
		
	private Long salecount;

	@Transient
	private String intro;

	@Transient
	private String orderNotice;
}
